import QtQuick
import QtQml.StateMachine as SM
SM.State{
    id:root

    initialState: selectingItems

    property alias waitingState:waiting
    property alias selectingItemsState:selectingItems
    property alias actOnPotionState:actOnPotion

    signal toWaitingState
    signal toSelectingState
    signal toActOnPotion

    SM.SignalTransition{
        targetState: waiting
        signal:toWaitingState
    }

    SM.SignalTransition{
        targetState: selectingItems
        signal:toSelectingState
    }

    SM.SignalTransition{
        targetState: actOnPotion
        signal:toActOnPotion
    }

    SM.State{
        id:waiting
    }

    SM.State{
        id:selectingItems
    }

    SM.State{
        id:actOnPotion
    }



}
